import {useNavigate} from 'react-router-dom';
function Main(){
    const navigate = useNavigate();
    function toDynamic(){
        navigate({pathname:'/Dynamic'})
    }
    return (
        <div>
            <nav className="navBox">
               <div className="mNav">
                <ul>
                    <li style={{marginLeft:'500px',color:'white'}} onClick={toDynamic}>动态</li>
                </ul>
                </div> 
            </nav>
        </div>
    )
}
export default Main;